package com.example.campus.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class PwdUpdateDTO implements Serializable {
    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String oldPwd;

    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String newPwd;

    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String rePwd;
}
